package com.demo.service.common;

public class BizErrorCode {

    public final static int EX_TRANSACTION_FAIL = -100001; // 业务处理错误
    public final static int EX_SQL_FAIL = -100021; // 业务处理失败

    public final static int EX_TOKEN_MISS = -101001;//非法访问: 请求中没有访问令牌User-Token
    public final static int EX_TOKEN_IPCHANGE = -101002;//登录地址变更，请重新登录
    public final static int EX_TOKEN_ERROR = -101003;//非法访问: 访问令牌User-Token非法
    public final static int EX_TOKEN_SINGLE_SING_ON = -101004;// 在其他设备登录
    public final static int EX_TOKEN_EXPIRE = -101005;// Token过期，请重新登录

    public final static int EX_USER_NOREGISTER = -200101; // 用户未注册
    public final static int EX_USER_WRONGPASSWORD = -200102; // 密码错误
    public final static int EX_USER_BYLOGOUT = -200103; // 被注销
    public final static int EX_USER_BYLOGIN = -200104; // 已经登录
    public final static int EX_USER_LOGINNAME_NULL = -200106; // 请输入登录名
    public final static int EX_NAME_EXIST = -200201; // 名称已经存在
    public final static int EX_USER_VERIFICATION_CODE_ERROR = -200202; // 验证码错误
    public final static int EX_USER_BLOCKED = -200208; // 未激活
    public final static int EX_USER_ACTIVEFAIL = -200212; // 激活失败
    public final static int EX_USER_ID_INVALID = -200216; //无效的用户ID！

    public final static int EX_RIGHT_ID_INVALID = -201101; //无效的权限ID！
    public final static int EX_RIGHT_NAME_EXIST = -201102; // 权限名称已经存在
    public final static int EX_RIGHT_NEED_ADMIN = -201103; //没有权限执行此操作！
    public final static int EX_ROLE_NAME_EXIST = -201104; // 角色名称已经存在
    public final static int EX_ROLE_INUSE = -201105;//角色正在使用中，不能删除
    public final static int EX_ROLE_ID_INVALID = -201106; //无效的角色ID！

    public final static int EX_CODEMVC_ID_INVALID = -301001; //无效的ID！
}
